package com.example.zrbalance.model;

import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.Date;

@Schema(description = "d_product_installment")
public class DProductInstallment implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    private Integer id;

    /**
     * 连表ID
     */
    @Schema(description = "连表ID")
    private String installmentId;

    /**
     * 分期产品名称
     */
    @Schema(description = "分期产品名称")
    private String name;

    /**
     * 金额
     */
    @Schema(description = "金额")
    private String money;

    /**
     * 金额+利息
     */
    @Schema(description = "金额+利息")
    private String moneyTotal;

    /**
     * 期数
     */
    @Schema(description = "期数")
    private Integer periods;

    /**
     * 消费时间
     */
    @Schema(description = "消费时间")
    private Date consumptionDate;

    /**
     * 违约金额
     */
    @Schema(description = "违约金额")
    private String defaultMoney;

    /**
     * 违约利率
     */
    @Schema(description = "违约利率")
    private Double defaultRate;

    /**
     * 利率
     */
    @Schema(description = "利率")
    private Double rate;

    /**
     * 分期方式1等额本息、2等额本金
     */
    @Schema(description = "分期方式1等额本息、2等额本金")
    private Integer type;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getInstallmentId() {
        return installmentId;
    }

    public void setInstallmentId(String installmentId) {
        this.installmentId = installmentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getMoneyTotal() {
        return moneyTotal;
    }

    public void setMoneyTotal(String moneyTotal) {
        this.moneyTotal = moneyTotal;
    }

    public Integer getPeriods() {
        return periods;
    }

    public void setPeriods(Integer periods) {
        this.periods = periods;
    }

    public Date getConsumptionDate() {
        return consumptionDate;
    }

    public void setConsumptionDate(Date consumptionDate) {
        this.consumptionDate = consumptionDate;
    }

    public String getDefaultMoney() {
        return defaultMoney;
    }

    public void setDefaultMoney(String defaultMoney) {
        this.defaultMoney = defaultMoney;
    }

    public Double getDefaultRate() {
        return defaultRate;
    }

    public void setDefaultRate(Double defaultRate) {
        this.defaultRate = defaultRate;
    }

    public Double getRate() {
        return rate;
    }

    public void setRate(Double rate) {
        this.rate = rate;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}